package com.todo.content.application.remote;

import com.todo.common.common.entity.response.BizResponse;
import com.todo.user.api.response.BaseUserInfoResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author azhebuxing
 * @date 2025/2/24 01:56
 * @description
 */
@FeignClient(name = "todoUserService", url = "http://localhost:18000")
public interface UserInfoRemoteService {

    /**
     * 根据用户id查询用户基础信息
     *
     * @param userId
     * @return
     */
    @PostMapping("/api/userInfo/queryBaseUserAccountInfoByUserId")
    BizResponse<BaseUserInfoResponse> queryBaseUserAccountInfoByUserId(@RequestBody Long userId);
}
